package com.eip.zd.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Trade {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId
    private Long id;
    private BigDecimal tradeNo;
    private String custId;
    @TableField(exist = false)
    private String custName;
    private String getCustId;
    @TableField(exist = false)
    private String getCustName;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long projectId;
    @TableField(exist = false)
    private String projectName;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long car;
    @TableField(exist = false)
    private String carNo;
    private BigDecimal goodWeight;
    private String prodId;
    @TableField(exist = false)
    private String prodName;
    private BigDecimal unitPrice;
    private String userId;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private BigDecimal receive;
    private BigDecimal received;
    @TableField(exist = false)
    private BigDecimal unreceive;
    private Integer ifSettle;
    private Integer settleType;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer deleted;
}
